/**
 * Copyright (c) 2007, Ashish Lijhara
 * All rights reserved.
 *
 * MiniFrame.java
 *
 */

package crazy.java.Aetas;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;

/**
 *
 * @author  Ashish (Java Crazy)
 */

public class MiniFrame extends JFrame{
    
    public MiniFrame(){
        super("Aetas");
        MiniBackGround bg=new MiniBackGround();
        setContentPane(bg);
        MiniFrameGlass glass = new MiniFrameGlass(this);
        setGlassPane(glass);
        glass.setVisible(true);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(300,225);
        setUndecorated(true);
        setVisible(true);
        //setLocationRelativeTo(null);
        doMove();
        MoveMouseListener mml = new MoveMouseListener(glass);
        glass.addMouseListener(mml);
        glass.addMouseMotionListener(mml);
    }
    
    public void doMove(){
        AnimationHandler ani=new AnimationHandler(this);
        ani.move();
    }
    public static void main(String[] args) {
        
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                
                MiniFrame tester = new MiniFrame();
                tester.setVisible(true);
            }
        });
    }
    
}
